/*
 * main.h
 *
 *  Created on: Apr 25, 2025
 *      Author: Lenovo
 */

#ifndef USER_MAIN_H_
#define USER_MAIN_H_

#ifdef MY_DEBUG

#define DEBUG_Printf                        printf
#define dk_log(...)                         do { DEBUG_Printf(__VA_ARGS__);} while (0)
#define dk_log_ln(...)                      do { dk_log(__VA_ARGS__); DEBUG_Printf("\r\n"); } while(0)
//#define dk_log_hex(str, data, len)          //do { uint8_t i; dk_log(str, NULL); for (i=0;i<len;i++) {DEBUG_Printf("%02x",*(data+i));} DEBUG_Printf("\r\n"); } while (0)
#else
#define DEBUG_Printf(...)
#define dk_log(...)
#define dk_log_ln(...)
#define dk_log_hex(...)
#endif

void set_external_light_effect(External_Light_Effect_Def mode);
void set_external_everbright_array(uint8_t rgb_value[Pixel_NUM][3]);
void set_cpu_temp(uint8_t value);
void set_cpu_scale(uint8_t value);
#endif /* USER_MAIN_H_ */
